import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        float h=scanner.nextFloat();
        int n =scanner.nextInt();
        float sum=0;
        //write your code here......
        for (int i = 0; i < n; i++) {
            sum=sum+h;
            h=h/2;
            if(i==n-1){
                System.out.println(String.format("%.3f", h)+" "+String.format("%.3f", sum));
            }
            sum=sum+h;
        }

        //输出格式为：System.out.println(String.format("%.3f", h)+" "+String.format("%.3f", sum));


    }
}